﻿@{
    ViewBag.Title = "分类管理";
    ViewBag.NavTitle = "分类管理";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
}
@using MvcMall.Portal.Controllers.Stores.ViewModels;
@model List<SaveStoreCategoryModel>
<div class="right_box">
    <div class="right_box_map">
        我的商品分类
    </div>
    <table class="right_box_tab" style="margin-top: 10px;" width="100%" border="0" cellspacing="0"
        cellpadding="0">
        <tr height="30" class="tab_title">
            <td width="25%">
                分类名称
            </td>
            <td width="25%">
                父级分类
            </td>
            <td width="25%">
                排序编号
            </td>
            <td>
                操作
            </td>
        </tr>
        @foreach (var item in Model)
        {
            <tr height="40" class="tab_td1" onmouseover="this.className='tab_td2'" onmouseout="this.className='tab_td1'">
                <td>
                    @item.CatName
                </td>
                <td>
                    @item.ParentName
                </td>
                <td>
                    @item.SortOrder
                </td>
                <td>
                    @Html.ActionLink("修改", "SaveStoreCategory", "Stores", new { @Id = item.Id }, null)
                </td>
            </tr>
        }
    </table>
    <div style="line-height: 80px;">
        <p class="avatar_btn">
            @Html.ActionLink("新增商品分类", "SaveStoreCategory", "Stores", null, null)
        </p>
    </div>
</div>
